package JZ;

/**
 * @Classname JZ55I
 * @Description // https://leetcode-cn.com/problems/er-cha-shu-de-shen-du-lcof/ 树
 * @Date 2021/4/21 11:17
 * @Created by yin
 */
public class JZ55I {
    public int maxDepth(TreeNode root) {
        if (root == null) return 0;
        return Math.max(maxDepth(root.left), maxDepth(root.right)) + 1;
    }
}
